package com.video_study.dao;

import com.video_study.dto.CourseDto;
import com.video_study.dto.CourseDto2;
import com.video_study.pojo.Course;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CourseMapper {
    int deleteByPrimaryKey(String id);

    int insert(Course record);

    Course selectByPrimaryKey(String id);

    List<Course> selectAll();

    int updateByPrimaryKey(Course record);

    CourseDto selectById(String id);

    List<CourseDto2> getCourses(@Param("type") String type);

    List<String> getTypes();

    Integer updateLikes(Course course);


    int addPlays(String courseId);
}